package org.example.service;

import org.example.entity.ApiHistory;
import org.example.entity.CommonResult;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

public interface ApiService {
	CommonResult<Void> api(String apiKey, MultipartFile file);

	CommonResult<String> getKey();

	CommonResult<String> updateKey();

	CommonResult<List<ApiHistory>> getHistory();


	void downloadFile(String fileId, HttpServletResponse httpResponse) throws IOException;
}
